<div id="roles_page" style="width:100%;">
</div>
<script type="text/javascript">
var roles;
var pageno = 1;
if (roles) { pageno = roles.findCurrentPage(); }
new MUI.Require({
  js: [MUI.path.plugins + 'mochaList/List.js'],
  onload: function(){
	var dataURL = '/data/sc.action';//取数据的url
	var dataURLParams = {"scid":"auth_1","pageno":1};//要传给dataURL的参数
	var instanceName = 'roles';//MUI.List实例名称
	var divId = "role_list";//要填充的div编号
	var columns = [{text:'序号',name:'id'},{text:'角色名',name:'name'},{text:'说明',name:'note'}];//要显示的字段
	if (!roles){
	roles = new MUI.List({
		instanceName:instanceName,
       	container:'roles_page',
       	showCheckBox:true,
		showCommand:false,
       	id:divId,
       	columns:columns,
       	dataURL:dataURL,
       	dataURLParams:dataURLParams,
       	cbName:'idyyys',
       	commands:[],
       	onItemCommand: function(item,self,cmd,img) {},
       	onItemChecked: function(item,self,cmd,img) {},
       	onItemSelected: function(item,self,cmd,img) {},
       	onItemColumnBound: function(item,self,col,td) {}
   	});//MUI.List
   	}
   	//roles.update();
   	//roles.findList(1);
   	roles.findList(pageno);
   	//if (roles.findCurrentPage()==0) roles.findList(1);
  }//onload
});//MUI.Require

</script>